<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('用户列表')" />
	<th:block th:include="include :: layout-latest-css" />
	<th:block th:include="include :: ztree-css" />
</head>
<body class="gray-bg">

	<div class="btn-group-sm" id="toolbar" role="group">
		<a class="btn btn-success" onclick="$.operate.addTab()" shiro:hasPermission="system:user:add">
			<i class="fa fa-plus"></i> 新增
		</a>
		<a class="btn btn-primary single disabled" onclick="$.operate.editTab()" shiro:hasPermission="system:user:edit">
			<i class="fa fa-edit"></i> 修改
		</a>
		<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">
			<i class="fa fa-remove"></i> 删除
		</a>
		<a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="system:user:import">
			<i class="fa fa-upload"></i> 导入
		</a>
		<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:user:export">
			<i class="fa fa-download"></i> 导出
		</a>
	</div>

</body>



<!-- 导入区域 -->
<script id="importTpl" type="text/template">
<form enctype="multipart/form-data" class="mt20 mb10">
	<div class="col-xs-offset-1">
		<input type="file" id="file" name="file"/>
		<div class="mt10 pt5">
			<input type="checkbox" id="updateSupport" name="updateSupport" title="如果登录账户已经存在，更新这条数据。"> 是否更新已经存在的用户数据
			 &nbsp;	<a onclick="$.table.importTemplate()" class="btn btn-default btn-xs"><i class="fa fa-file-excel-o"></i> 下载模板</a>
		</div>
		<font color="red" class="pull-left mt10">
			提示：仅允许导入“xls”或“xlsx”格式文件！
		</font>
	</div>
</form>
</script>
</html>